<include file="Public:head" />
<link href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/home.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
    
    function bindPhone(){
        $.post("{:U('Box/bindPhone')}",{
        },function(data){
            $('#mainbox').html(data);
            showbgbox('#browsebox');
        })
        
    }
</script>

<div id="wrap">
    <div id="school">{$type=0|getAreaName}
        <a href="__APP__/?type=clean">[切换位置]</a>
        <span>/</span>
        <em>个人中心</em>
    </div>
    <!--end of header-->
    <div id="container" class="clearfix">
        <div class="shadow clearfix" id="pCenter">
            <include file="Public:left" />

            <div id="pAccount">

                <div id="ac_info" class="acc_con">
                    <p class="ac_title">个人信息</p>
                    <div class="ac_content">
                        <div class="hyzl_left_tx" id="btn_logo" >
                            <img src="{$user.avatar|getUserAvatar=###,130}" id="avatarImg" />
                            <a id="modifyUserImg" class="userPicTtitle ">
                                <span class="xiugaiPic">修改头像</span>
                            </a>
                        </div>
                        <table width="80%" align="right">
                            <tr>
                                <td align="right" width="90px"><b>我的邮箱：</b> </td>
                                <td>{$user.email}</td>
                            </tr>
                            <tr>
                                <td align="right" width="90px">
                                    <b>用户名：</b>
                                </td>
                                <td>{$Think.session.username}</td>
                            </tr>
                            <tr>
                                <td align="right" width="90px">
                                    <b>总积分：</b>
                                </td>
                                <td>
                                    <em class="fl">{$user.money}</em>
                                    <span class="credit fr">
                                        <a href="{:U('Gifts/index')}" target="_blank">去兑换礼品</a>
                                    </span>
                                </td>
                            </tr>
                            <tr>
                                <td align="right" width="90px">
                                    <b>绑定手机：</b>
                                </td>
                                <td id="phoneArea">
                            <if condition="$user.phone eq ''">
                                <span  class="fl">未绑定手机</span>
                                <a class="fr click_bind" href="javascript:;" onclick="bindPhone()">去绑定</a>
                                <else/>
                                <span  id="updatePhone" class="fl">{$user.phone}</span>
                                <a class="fr click_bind" href="javascript:;" onclick="bindPhone()">修改</a>
                            </if>
                            </td>
                            </tr>

                            <tr>
                                <td align="right" width="90px">
                                    <b>签到次数：</b>
                                </td>
                                <td>
                                    <em class="fl">{$signnum}</em>
                                    <a href="{:U('Member/sign')}" class="fr">去签到</a>
                                </td>
                            </tr>
                        </table>
                        <div class="clear"></div>
                    </div>
                </div>
                <div id="accountBind" class="acc_con">
                    <p class="ac_title">
                        绑定信息<span class="tips">绑定第三方账号，拥有更方便的登陆方式，赢得更多积分!</span></p>
                    <div class="otherAccount">
                        <table>
                            <colgroup>
                                <col width="200px" />
                                <col />
                            </colgroup>
                            <thead>
                                <tr>
                                    <td>
                                        关联账号
                                    </td>
                                    <td>
                                        状态
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>
                                        <span class='othico QQ'>QQ账号</span>
                                    </td>
                                    <td>
                                        <if condition="$user.qq eq ''">
                                        未绑定<a href="{:U('Index/login',array('type'=>qq))}" class='bind'>绑定获取{$config.points_qq}积分</a>
                                        <else/>
                                        已绑定
                                        </if>
                                    </td>
                                </tr>

                                <tr>
                                    <td>
                                        <span class='othico weibo'>微博账号</span>
                                    </td>
                                    <td>
                                        <if condition="$user.sina eq ''">
                                        未绑定<a href="{:U('Index/login',array('type'=>sina))}" class='bind'>绑定获取{$config.points_sina}积分</a>
                                        <else/>
                                        已绑定
                                        </if>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <span class='othico renren'>人人账号</span>
                                    </td>
                                    <td>
                                        <if condition="$user.renren eq ''">
                                        未绑定<a href="{:U('Index/login',array('type'=>renren))}" class='bind'>绑定获取{$config.points_renren}积分</a>
                                        <else/>
                                        已绑定
                                        </if>
                                    </td>
                                </tr>

                                <!--                                <tr>
                                                                    <td>
                                                                        <span class='othico wechat'>微信账号</span>
                                                                    </td>
                                                                    <td>
                                                                        未绑定<a class='bind tooltip' id='bindwechat'>绑定<span>
                                                                                <div style='text-align:center'>
                                                                                    <img src='__PUBLIC__/images/refresh.gif' id='wxqrimg'>
                                                                                    <div style='padding-left: 4px; height: 19px;'>扫一扫 微信也能叫外卖</div>
                                                                                    
                                                                                </div>
                                                                            </span>
                                                                        </a>
                                                                    </td>
                                                                </tr>-->

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!--end of pAccount-->
        </div>
        <!--end of pCenter -->
        <div class="minLoginBg">
        </div>
    </div>
    <!--end of container-->

    <include file="Public:foot" />
    <include file="Plupload:member_avatar" />